package model.bean;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "v_curso")
public class Curso {

	@Id
	@Column(name = "id_curso")
	private Long id;

	@Column(name = "nome")
	private String nome;
	@Column(name = "tipo")
	private String tipo;

	@OneToMany(mappedBy = "curso", fetch = FetchType.LAZY)
	private List<Modulo> modulos;

	public Long getId() {
		return id;
	}

	
	public String getNome() {
		return nome;
	}

	public String getTipo() {
		return tipo;
	}

	public List<Modulo> getModulos() {
		return modulos;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	
}
